package com.sinven.serivce;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sinven.common.Pager;
import com.sinven.pojo.Leave;

public interface LeaveSerivce {

	/**1
	 * 查询数据库的数量总条数
	 * @return
	 */
	long countLeave();

	/**
	 * 分页查询
	 * @param startIndex
	 * @param pageSize
	 * @return
	 */
	Pager<List<Leave>> queryAll(long startIndex,long pageSize);
	
	/**
	 * 添加
	 * @param leave
	 * @return
	 */
	Boolean addLeave(Leave leave);
}
